package cn.jingzhuan.fm.ui;

import android.support.v4.app.Fragment;
import android.support.v7.app.ActionBar;
import android.support.v7.widget.Toolbar;

import dagger.android.support.DaggerFragment;

/**
 * Base Fragment
 *
 * Created by Donglua on 29.3.2017.
 */

public class BaseFragment extends DaggerFragment { //


    public void setActionbar(Toolbar toolbar) {
        getBaseActivity().setSupportActionBar(toolbar);
    }

    public ActionBar getActionbar() {
        return getBaseActivity().getSupportActionBar();
    }

    public BaseActivity getBaseActivity() {
        return (BaseActivity) getActivity();
    }

    @Override public void onDestroy() {
        super.onDestroy();
    }
}
